package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Student;
import org.springframework.transaction.annotation.Transactional;


@Transactional(readOnly = true)
public interface StudentService {

    @Transactional(readOnly = false)
    boolean saveStu(Student student);

    @Transactional(readOnly = false)
    boolean updateStu(Student student);

    @Transactional(readOnly = false)
    boolean deleteStu(Integer uuid);

    Student getStu(Integer uuid);

    PageInfo<Student> getAllStu(int page, int size);
}
